<template>
  <div>
    音乐播放页面---{{ $route.query.id }}

    <hr />
    <audio :src="musicUrl" controls autoplay></audio>
  </div>
</template>
<script>
import axios from 'axios'
export default {
  data () {
    return {
      musicUrl: ''
    }
  },
  async created () {
    const res = await axios({
      url: 'http://119.91.150.211:9000/song/url?id=' + this.$route.query.id
    })
    this.musicUrl = res.data.data[0].url
    console.log(res)
  }
}
</script>
<style></style>
